<div id="scroller">
<?php if($title!=''):?>
<h1 class="title"><?php echo $title;?></h1>
<?php endif;?>
<div id="amazon_scroller1" class="amazon_scroller">
       	<div class="amazon_scroller_mask">
                <ul>
                <?php foreach ($data as $key => $item):
                	$link = Yii::app()->controller->createUrlProductDetail($item->product_id);
                ?>
                <li><a href="<?php echo $link;?>">
                <img src="<?php echo ShopHelpers::getImageProduct($item->image, 'l');?>" width="124" height="160" alt="<?php echo $item->title;?>"/>
                <div class="pro_title"><?php echo $item->title;?></div>
                </a>
                <div class="pro_viewd"><?php echo $item->view;?> views</div>
                </li>
                <?php endforeach;?>
        	</ul>
        </div>
        <ul class="amazon_scroller_nav">
        <li class="nav_left"></li>
        <li class="nav_right"></li>
		</ul>
	<div style="clear: both"></div>
</div>
</div>